﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">模块修改</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
                                                 <li><a href="index.php?app=module&act=index"  target="mainframe">模块列表</a></li>
												 <li><a href="index.php?app=module&act=add"  target="mainframe">模块添加</a></li>

				<li class="current"><a href="#" >模块修改</a></li>	
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">
	
	
<form action="?app=module&act=editpost" method="post" >

<table  class="data" >
<tbody>  <tr>
	<td width="30%">模块名称:<br><span class="gray">使用汉字，且用来在后台使用</span></td>
	<td><input type="text" maxlength="50" size="50" value="{$data.name}" name="data[name]"></td>
</tr>

<tr>
	<td>模块APP名:<br><span class="gray">使用英文字母</span></td>
	<td><input type="text" maxlength="20"  size="30" name="data[appname]" value="{$data.appname}"></td>
</tr>

<tr>
	<td>模块别名:<br><span class="gray">使用汉字，且用来在前台使用</span></td>
	<td><input type="text" maxlength="20"  size="30" name="data[alias]" value="{$data.alias}"></td>
</tr>
<tr>
	<td>模板关键字:<br><span class="gray">使用英文字母，且名称与模块APP名相同</span></td>
	<td><input type="text" maxlength="30"  size="30" name="data[keywords]" value="{$data.keywords}"></td>
</tr>

<tr>
	<td>模块的模板:</td>
	<td>

    	                                 <select name="data[viewname]" >
										 <option  value="">请选择...</option> 
                                          <?php foreach((array)$viewdata as $_key => $_value ) { ?>
 		                                  <option <?php if ($_value ==$data.viewname) { ?> selected <?php } ?> value="{$_value}">{$_value}</option> 
										 <?php } ?> 
	                                     </select>		
	</td>
</tr>


<tr>
	<td>模板列表字段:<br><span class="gray">使用在后台，格式是"字段意思名1:字段英文名1|字段意思名2:字段英文名2"例如"测试:my_test|测试1:my_test1",其中":,|"是英文字符</span></td>
	<td><input type="text" maxlength="30"  size="30" name="data[filedlist]" value="{$data.filedlist}"></td>
</tr>

<tr>
	<td>模板字段查询设置<br><span class="gray">格式如下：
#
filedname:nowprice|
to:p|
100到200:nowprice<200 and nowprice>100|
200到300:nowprice<300 and nowprice>200|
300以上:nowprice>300|
#
#
filedname:shoptype|
to:t|
型号1:shoptype = "型号1"|
型号2:shoptype = '型号2'| 
型号3:shoptype = '型号3'| 
#
	<!--filedname.my_qq:to.a:data[1][name].100到200:data[1][where].my_qq<300 and my_qq>200:|filedname.my_qq1:to.a1-->
	</span></td>
	<td><textarea name="data[selectlist]" cols="100" rows="20">{$data.selectlist}</textarea></td>
</tr>


<tr>
	<td>排序:</td>
	<td><input type="text" maxlength="3"  size="3" name="data[sort]" value="{$data.sort}"></td>
</tr>  
<tr>
	<td>&nbsp;</td>
	<td><input name="data[id]" type="hidden" value="{$data.id}" /><input type="submit" value=" 提 交 " class="buton"></td>
</tr>
</tbody></table>
</form>                                 
  	

        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->